package com.example.demo;

/**
 * Copyfright(C),2022-2022,复兴元宇科技有限公司
 * FileName:YZResult
 * Author:yz
 * Date:2022/3/14 11:47 上午
 * Description:
 * History:
 * <author>  <time> <version> <desc>
 * 作者       时间    版本      描述
 */
public class YZResult<T> {
    public int code;

    private String msg;

    private T data;

    public YZResult<T> setCode(YZCode retCode) {
        this.code = retCode.code;
        return this;
    }

    public int getCode() {
        return code;
    }

    public YZResult<T> setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public YZResult<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public YZResult<T> setData(T data) {
        this.data = data;
        return this;
    }

}
